package cn.kgc.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @InterfaceName ordersClient
 * @Description: TODO
 * @Author :郭建宾
 * @Date 2020/7/19
 * @Version V1.0
 **/
@Component
@FeignClient(value = "service-order",fallback = OrdersFileDegradeFeignClient.class)
public interface OrdersClient {
    //根据课程id用户id查询订单表中订单状态
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId );
}
